package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	router := gin.Default()
	router.LoadHTMLGlob("templates/*")

	// 定义路由，访问 /index 时渲染 index.html 模板
	router.GET("/", func(c *gin.Context) {
		c.HTML(http.StatusOK, "phone.html", gin.H{})
	})

	router.Run(":8080")
}
